package com.tansuo365.test1.service.otherservice;

import com.tansuo365.test1.bean.InfoData;
import com.tansuo365.test1.bean.otherbean.ShengouDetails;

import java.util.List;

public interface ShengouDetailsService {

    //根据总表ID获取详细表
    List<ShengouDetails> listShengouDetailsByZongId(Integer zongzhangid);

    //获取到申购执行中该物料的到货量
    List<ShengouDetails> listShengouDetailsShouruByZongId(Integer zongzhangid);

    //获取申购详细里到货单绑定了但是未采购和部分采购的, 超量采购和全部采购的返回数据
    List<ShengouDetails> listShengouDetailsWithDaohuoIfNotFull(Integer zongzhangid);//主要接收zongzhangid

    List<InfoData> listShengouInfoDataDetailsByZongId(Integer zongzhangid);

    //动态查询申购详细
    List<ShengouDetails> listShengouDetailsSelective(ShengouDetails shengouDetails);

    int deleteByPrimaryKey(Integer id);

    int deleteByZongId(Integer zongzhangid);

    //根据申购单总表id,删除申购单下对应的详细申购物料元组
    int deleteByZongIdArr(Integer[] ids);

    int insertSelective(ShengouDetails store);

    ShengouDetails selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ShengouDetails shengouDetails);

}
